<?php

/*
* @Author: 玛瑙
* @Date:   2018-04-25 14:20:10
* @Last Modified by:   Administrator
* @Last Modified time: 2018-04-25 14:26:36
*/
namespace app\company\model;

class Template {
	/**
	 * 执行添加
	 */
	public function doAdd($data) {
		$data['create_time'] = time();
		$data['update_time'] = time();
		$data['is_delete'] = 0;

		$result = db("inspection_item_model")->insert($data);
		if (!$result) {
			exception('添加失败');
		}
	}
}